package study.javaee.practice.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import study.javaee.practice.common.api.CommonResult;
import study.javaee.practice.service.UserService;

@Controller
@RequestMapping("/")
public class HomeController {

    @Autowired
    UserService userService;

    @ResponseBody
    @GetMapping("/")
    public CommonResult<String> home(){
        return CommonResult.success("欢迎");
    }
}
